package com.qf.hello.mybatis.entity;

import java.util.List;

/**
 * @author zed
 * @date 2022/4/22 11:15
 * 学生实体类
 */
public class Student {

    private Integer id;
    private String name;
    private String sex;
    // 学生可以学习多门课程
    private List<Subject> subjectList;

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public List<Subject> getSubjectList() {
        return subjectList;
    }

    public void setSubjectList(List<Subject> subjectList) {
        this.subjectList = subjectList;
    }
}
